package io.sk.common.base;

/**
 * 系统常量
 *
 * @author xubinren
 * @version 1.0
 * @date 2018/5/8 18:10
 */
public interface Constants {

    /**
     * 正常
     */
    int RESPONSE_CODE_200 = 200;
    /**
     * 此条数据不可被修改
     */
    String RESPONSE_MESSAGE_200 = "success";

    /**
     * 参数错误
     */
    int RESPONSE_CODE_400 = 400;
    String RESPONSE_MESSAGE_400 = "parameter error";

    int RESPONSE_CODE_401 = 401;
    String RESPONSE_MESSAGE_401 = "未登录";

    int RESPONSE_CODE_403 = 403;
    String RESPONSE_MESSAGE_403 = "无权限执行此操作";

    /**
     * 没有找到对应的路径
     */
    int RESPONSE_CODE_404 = 404;
    String RESPONSE_MESSAGE_404 = "resource not found";

    int RESPONSE_CODE_405 = 405;
    String RESPONSE_MESSAGE_405 = "No resource method found for POST";

    int RESPONSE_CODE_408 = 408;
    String RESPONSE_MESSAGE_408 = "请求超时";

    int RESPONSE_CODE_409 = 409;
    String RESPONSE_MESSAGE_409 = "请重试";

    int RESPONSE_CODE_430 = 430;
    String RESPONSE_MESSAGE_430 = "账号未启用";

    int RESPONSE_CODE_431 = 431;
    String RESPONSE_MESSAGE_431 = "用户名或密码错误";

    int RESPONSE_CODE_432 = 432;
    String RESPONSE_MESSAGE_432 = "密码错误";

    /**
     * 服务器未知错误
     */
    int RESPONSE_CODE_500 = 500;
    String RESPONSE_MESSAGE_500 = "服务器系统内部错误";

    int RESPONSE_CODE_501 = 501;

    String RESPONSE_MESSAGE_501 = "未知异常，请联系管理员";

    int RESPONSE_CODE_518 = 518;
    String RESPONSE_MESSAGE_518 = "登录超时";

    /**
     * 数据库错误
     */
    int RESPONSE_CODE_600 = 600;

    String RESPONSE_MESSAGE_600 = "数据库操作过程错误";

    int RESPONSE_CODE_601 = 601;

    String RESPONSE_MESSAGE_601 = "数据库记录已存在";

    int RESPONSE_CODE_602 = 602;

    String RESPONSE_MESSAGE_602 = "操作的记录不存在";

    int RESPONSE_CODE_603 = 603;

    String RESPONSE_MESSAGE_603 = "被扫描的对象不存在";

    int RESPONSE_CODE_604 = 604;

    String RESPONSE_MESSAGE_604 = "数据库记录为错误数据";

    int RESPONSE_CODE_605 = 605;

    String RESPONSE_MESSAGE_605 = "数据保存失败";

    int RESPONSE_CODE_606 = 606;

    String RESPONSE_MESSAGE_606 = "数据更新失败";

    int RESPONSE_CODE_607 = 607;

    String RESPONSE_MESSAGE_607 = "此数据不可操作";


    /*用户session*/
    String SESSION = "USER_SESSION";

    /**
     * 逻辑删除
     */
    /*正常*/
    String DEL_LOGIC_NORMAL = "0";
    /*删除*/
    String DEL_LOGIC_DELETE = "1";

    /*正常*/
    int DEL_LOGIC_SUCCESS = 0;
    /*删除*/
    int DEL_LOGIC_FAIL = 1;

    /**是否默认：0、是，1、不是*/
    int DEFAULT_YES = 0;
    int DEFAULT_NO = 1;

    /**性别：1、男，2、女*/
    int SEX_MAN = 1;
    int SEX_WOMAN = 2;
    String SEX_MAN_TXT = "男";
    String SEX_WOMAN_TXT = "女";


    /************************************** 表字段名称及表中的分类值 start ***************************************/
    /**公共字段*/
    String TAB_CREATE_DATE = "create_date";
    String TAB_UPDATE_DATE = "update_date";
    String TAB_LOGIC_DEL = "del_flag";
    /**公共数据*/
    /**注册时创建人为0*/
    String TAB_CREATE_USER_VALUE = "0";

    /**班级创建状态：1、待审核，2、审核通过，3、审核拒绝，4、已解散*/
    int CLASS_STATUS_PENDING = 1;
    int CLASS_STATUS_PASSED = 2;
    int CLASS_STATUS_REJECT = 3;
    int CLASS_STATUS_DISMISS = 4;

    /**申请加入班级状态：1、待审核，2、审核通过，3、审核拒绝*/
    int JOIN_STATUS_PENDING = 1;
    int JOIN_STATUS_PASSED = 2;
    int JOIN_STATUS_REJECT = 3;

    /**人员类型：1、老师，2、家长*/
    int USER_TEACHER = 1;
    int USER_PARENT = 2;

    /**教师类型：1、班主任，2、任课老师*/
    int TEACHER_HEAD = 1;
    int TEACHER_INSTRUCTOR = 2;

    /**账户类型：1、超管，2、幼儿园，3、教师，4、家长*/
    int ACCOUNT_SUPER = 1;
    int ACCOUNT_NURSERY = 2;
    int ACCOUNT_TEACHER = 3;
    int ACCOUNT_PARENT = 4;

    /********************  相册信息表 **********************/
    String DEFAULT_PHOTO = "默认相册";


    /************************************** 表字段名称及表中的分类值  end  ***************************************/

    /******************************** 基本数据类型、封装数据类型 无意义常量  start  ******************************/

    int INT_NEGATIVE_ONE = -1;
    int INT_NEGATIVE_TWO = -2;
    int INT_ZERO = 0;
    int INT_ONE = 1;
    int INT_TWO = 2;
    int INT_THREE = 3;
    int INT_FOUR = 4;
    int INT_FIVE = 5;
    int INT_SIX = 6;
    int INT_EIGHT = 8;
    int INT_TEN = 10;
    int INT_ELEVEN = 11;
    int INT_THIRTEEN = 13;
    int INT_FOURTEEN = 14;
    int INT_FIFTEEN = 15;
    int INT_SIXTEEN = 16;
    int INT_EIGHTEEN = 18;
    int INT_TWENTY = 20;

    String STRING_BLANK = "";
    String STRING_DELIMITER_COMMA = ",";

    String STRING_ZERO = "0";

    /**前台收集图片信息input的name*/
    String AVATAR_URL = "checkAvatarUrl";

    /**日期格式*/
    String DATE_FORMAT1 = "yyyy-MM-dd";
    String DATE_FORMAT2 = "yyyy-MM-dd HH:mm:ss";
    String DATE_FORMAT3 = "yyyy-MM-dd HH:mm";

    String DATE_ZERO = " 00:00:00";
    String DATE_HOUREND = " 23:59:59";


    /******************************** 基本数据类型、封装数据类型 无意义常量   end   ******************************/
    String ADMIN_ORGID = "2";
}
